# FROM python:3.10-slim
FROM python:3.9
MAINTAINER dazhuang dazhuang_python@sina.com

EXPOSE 8080 8081

RUN apt-get update && \
    apt-get install \
    --no-install-recommends -y \
    build-essential \
    libssl-dev \
    python3-dev && \
    python3 -m pip install --upgrade pip && \
    pip3 install \
    --no-cache-dir \
    mitmproxy pymongo requests Appium-Python-Client==2.0.0  selenium && \
    apt-get remove --purge -y \
    build-essential \
    libssl-dev \
    python3-dev && \
    apt-get autoclean && \
    apt-get autoremove --purge -y && \
    rm -rf /var/lib/apt/lists/ /tmp/ /var/tmp/*